const http = uni.$u.http

/**
 * 活动api
 */
// get请求，获取所有活动图片
export const getAllACTImg = (data) => http.get('/activity/getACTAllImg', data)

// 获取单个活动图片
export const getACTImg = (data) => http.get('/activity/getACTImg', data)

// get请求，获取活动详细信息
export const getACTDetailInfo = (data) => http.get('/activity/getDetailInfo', data)

// get请求，获取活动列表（活动）
export const getACTList = (data) => http.get('/activity/getACT', data)
// get请求，获取活动列表（比赛）
export const getMarchList = (data) => http.get('/activity/getACT', data)


// 获取关注状态
export const isAttention = (data) => http.get('/user/isAttention', data)
// 用户关注活动
export const attentionACT = (data, config = {}) => http.post('/user/attentionACT', data, config = {})
// 用户取消关注活动
export const cancelAttention = (data, config = {}) => http.post('/user/cancelAttention', data, config = {})
// 获取关注活动列表
export const getAttentionActList = (data) => http.get('/user/getAttentionActList', data)
// 获取活动反馈列表
export const getFeedbackList = (data) => http.get('/activity/getFeedback', data)
// 增加活动反馈
export const createFeedback = (data, config = {}) => http.post('/activity/createFeedback', data, config = {})
// 增加定位签到地点
export const addLocation = (data, config = {}) => http.post('/activity/addLoaction', data, config = {})
// 活动定位签到
export const signLocation = (data, config = {}) => http.post('/activity/signLocationScore', data, config = {})

/**
 * 用户api
 */
// 用户登录
export const userLogin = (data, config = {}) => http.post('/user/login', data, config = {})
// 微信登录
export const userWxlogin = (data, config = {}) => http.post('/user/wxlogin', data, config = {})
// 获取用户信息
export const getUserInfo = (data = {}) => http.get('/user/info', data)
// 修改用户信息
export const modifyUserInfo = (data, config = {}) => http.post('/user/modifyUserInfo', data, config = {})


/**
 * 分数api
 */
// 活动签到
export const signScore = (data, config = {}) => http.post('/activity/signScore', data, config = {})

// 获取创新分
export const getChuangxinScore = (data = {}) => http.get('/activity/getChuangxinByAccount', data)

// 获取学业分
export const getXueyeScore = (data = {}) => http.get('/activity/getXueyeByAccount', data)

// 获取思想分
export const getSixiangScore = (data = {}) => http.get('/activity/getSixiangByAccount', data)

// 获取文体分
export const getWentiScore = (data = {}) => http.get('/activity/getWentiByAccount', data)

// 提交参赛文件
export const submitEntry = (data, config = {}) => http.post('/activity/submitEntry', data, config = {})